package com.ddz.qpz.sms.client.fallback;

import com.ddz.qpz.sms.client.CoreUserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: LiQingBo
 * @Date: 2021/10/11-10-11-22:25
 * @Description: com.ddz.qpz.sms.client
 * @version: 1.0
 */
@Service
@Slf4j
public class CoreUserInfoClientFallback implements CoreUserInfoClient {
    @Override
    public boolean checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return false; //手机号不重复
    }
}